<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>EnvGet</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="../css/default.css" rel="stylesheet" type="text/css">
</head>
<body>

<h1>EnvGet <span class="ver">[v1.0.43.08+]</span></h1>

<p>获取环境变量的内容.</p>

<pre class="Syntax">EnvGet, OutputVar, EnvVarName</pre>
<h3>参数</h3>
<table class="info">
  <tr>
    <td width="15%">OutputVar</td>
    <td width="85%">用来存储字符串的变量名.</td>
  </tr>
  <tr>
    <td>EnvVarName</td>
    <td>要获取的 <a href="../Variables.htm#env">环境变量</a> 的名称. 例如: <em>EnvGet, OutputVar, Path </em></td>
  </tr>
</table>
<h3>备注</h3>
<p>如果指定的环境变量为空或不存在, 那么 <em>OutputVar</em> 被置空.</p>
<p>操作系统限制每个环境变量的文本最多为 32 KB.</p>
<h3>相关</h3>
<p><a href="EnvSet.htm">EnvSet</a>, <a href="_NoEnv.htm">#NoEnv</a>, <a href="../Variables.htm#env">环境变量</a>, <a href="EnvUpdate.htm">EnvUpdate</a>, <a href="SetEnv.htm">SetEnv</a>, <a href="Run.htm">Run</a>, <a href="Run.htm">RunWait</a> </p>
<h3>示例</h3>
<pre class="NoIndent">EnvGet, OutputVar, LogonServer</pre>

</body>
</html>
